<html lang="en">

<head>
    <meta charset="utf-8"/>
    <script src="http://code.jquery.com/jquery-latest.js"></script>
</head>

<body>
<span id="msg"></span>
</body>

<script>
    $(document).ready(function(){
        $.ajax({
            method:"get",
            url:"/account/body",
            beforeSend: function (request) {
                // var jwtx=window.sessionStorage.getItem("jwtx-token")
                var jwt=window.localStorage.getItem("jwt-token")
                request.setRequestHeader("jwt-token", jwt);
            },
            success: function (result) {
                $('#msg').html("这是用户"+result.uid+"的账户中心");
            },
        });
    });
</script>